package com.blb.friendsO.service;

import com.blb.friendsO.entity.TComment;
import com.blb.friendsO.entity.TFriends;
import com.blb.friendsO.entity.TGood;

import java.util.List;

import com.blb.friendsO.entity.TFriends;

import java.sql.SQLException;

public interface IFriendsService {

    //获取所有动态
    List<TFriends> getFriends() throws Exception;

    //获得所有点赞
    List<TGood> getGood() throws Exception;

    //获得所有评论
    List<TComment> getComment() throws Exception;

    //发表添加
    void add(TFriends friends) throws SQLException, ClassNotFoundException;

    //根据id删除动态
    void deleteById(int id) throws Exception;

    //添加点赞
    void addGood(int userId,int friendsID) throws SQLException, ClassNotFoundException;
}
